Responsive respiratory rehabilitation